﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YAPL.Language.Ast {
	public abstract class BaseIdentifierExpression : Expression {
		private readonly string _name;

		protected BaseIdentifierExpression(ExpressionType nodeType, Type type, string name) : base(nodeType, type) {
			_name = name;
		}

		public string Name {
			get { return _name; }
		}

		public override bool RewriteChild(Expression child, Expression newExpression) {
			return false;
		}
	}
}
